package creational.builder;

public class HouserBuilder implements  Builder<Houser>{
    private String type;
    private Integer doors;
    private Integer windows;
    private Integer room;
    private Boolean garden;

    @Override
    public Builder type(String type) {
        this.type = type;
        return this;
    }

    @Override
    public Builder doors(Integer doors) {
        this.doors = doors;
        return this;
    }

    @Override
    public Builder windows(Integer windows) {
        this.windows = windows;
        return this;
    }

    @Override
    public Builder room(Integer room) {
        this.room = room;
        return this;
    }

    @Override
    public Builder garden(Boolean garden) {
        this.garden = garden;
        return this;
    }

    @Override
    public Houser build() {
        return new Houser(type,doors,windows,room,garden);
    }
}
